package cn.j229.bug.zhongxuan.hualian.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author smile_ZhongXuan
 * @Date 2020/10/20 11:53
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_get")
public class Get implements Serializable {
    @Id
    @Column(name = "get_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "user_id")
    private Integer userid;

    @Column(name = "tkt_id")
    private Integer tktid;

    @Column(name = "get_getDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date getDate;

    @Column(name = "get_state")
    private Integer state;

    @Column(name = "get_exchangeDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date exchangeDate;

    @Column(name = "get_repeatable")
    private Boolean repeatable;
}
